package com.ac.app.web.action.invest;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.ac.app.dm.PickInvest;
import com.ac.app.dm.PickRecord;
import com.ac.app.dm.PickUrl;
import com.caac.core.service.BaseManager;
import com.caac.core.web.action.BaseAction;
import com.caac.core.web.form.BaseForm;

public class DeletePickInvestAction extends BaseAction {

	
	protected ActionForward doExecute(ActionMapping mapping, BaseForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		
		String[] ids = request.getParameterValues("id");
        BaseManager manager = this.getBaseManager();
        PickInvest pi=null;
		
        for (int i = 0; i < ids.length; i++) {
        	pi = (PickInvest)manager.loadObjectById(PickInvest.class, ids[i]);
            manager.deleteObjectById(PickInvest.class, ids[i]);
            
        }
        return forward(mapping);
	}

}
